import request from '@/utils/request'

// 查询指令代码列表
export function listZlmMstr(query) {
  return request({
    url: '/base/ZlmMstr/list',
    method: 'get',
    params: query
  })
}

// 查询指令代码详细
export function getZlmMstr(zlmId) {
  return request({
    url: '/base/ZlmMstr/' + zlmId,
    method: 'get'
  })
}

// 新增指令代码
export function addZlmMstr(data) {
  return request({
    url: '/base/ZlmMstr',
    method: 'post',
    data: data
  })
}

// 修改指令代码
export function updateZlmMstr(data) {
  return request({
    url: '/base/ZlmMstr',
    method: 'put',
    data: data
  })
}

// 删除指令代码
export function delZlmMstr(zlmId) {
  return request({
    url: '/base/ZlmMstr/' + zlmId,
    method: 'delete'
  })
}

// 导出指令代码
export function exportZlmMstr(query) {
  return request({
    url: '/base/ZlmMstr/export',
    method: 'get',
    params: query
  })
}

// 各指令超标原因分析-查询-指令代码菜单
export function listZlmMstrByZlmZldmInterval() {
  return request({
    url: '/board/instrOverFlowAnalyse/query/instrMenu',
    method: 'get',
  })
}
